/*
 * @Author: KKKKKK
 * @Date: 2021-01-10 12:07:58
 * @LastEditors: KKKKKK
 * @LastEditTime: 2021-01-10 12:07:58
 */
import axios from './config'
import url from './url'
const baseUrl = process.env.VUE_APP_BASE_URL


/* 短信类 */
// 新增短信
const smsTblCreate= (params) => axios.post(baseUrl + url.smsTbl.create, params)

// 删除短信
const smsTblDelete = (id) => axios.delete(baseUrl + url.smsTbl.delete + `/${id}`)

// 修改短信
const smsTblUpdate = (params, id) => axios.post(baseUrl + url.smsTbl.update + `/${id}`, params)

// 获取某个短信
const smsTblLoad = (id) => axios.get(baseUrl + url.smsTbl.load + `/${id}`)

// 获取短信列表
const smsTblPage = (params) => axios.get(baseUrl + url.smsTbl.page, { params })

export default {
  smsTblCreate,
  smsTblDelete,
  smsTblUpdate,
  smsTblLoad,
  smsTblPage
}
